
Route::group(function () {
    //砍价
        //砍价
        Route::get("/get_bargain_list", "app\api\controller\Bargain@list")->name("bargain.get_bargain_list");// 获取活动列表
        Route::get("/get_bargain_detail", "app\api\controller\Bargain@detail")->name("bargain.get_bargain_detail");// 获取活动详情
        Route::post("/start_bargain", "app\api\controller\Bargain@start_bargain")->name("bargain.start_bargain");// 发起砍价
        Route::post("/bargain", "app\api\controller\Bargain@bargain")->name("bargain.bargain");// 助力人砍价
        Route::get("/share_bargain_detail", "app\api\controller\Bargain@share_detail")->name("bargain.share_bargain_detail");// 分享砍价详情
        Route::post("/bargain_pay", "app\api\controller\Bargain@bargain_pay")->name("bargain.bargain_pay");//砍价订单支付
         
    })
->allowCrossDomain()
->middleware(\app\api\middleware\TokenMiddleware::class,true);// jwt认证

Route::group(function () {
    //砍价支付回调
       Route::post("/bargain_notify", "app\api\controller\Bargain@notify")->name("bargain.bargain_notify");//支付回调
    })
->allowCrossDomain();

